/*
 * @Descripttion: 
 * @version: 
 * @Author: zongxinliu
 * @Date: 2021-07-26 16:43:13
 * @LastEditors: charchen
 * @LastEditTime: 2021-08-12 15:04:21
 */
/**
 * @Author: june
 * @Date: 2021-03-26 23:32:22
 * @LastEditors: june
 * @LastEditTime: 2021-04-02 16:15:05
 * @Description: 公共请求封装
 */
import { request } from "@xiaoe/js-tools/lib/request";

//定义直播前缀
var alivePrefix = ""
export function changealivePrefix(data){
  alivePrefix = data
}

// 获取支付完成页引导加群数据
export function getLeadGroup(params) {
    let requestParams = {
      bizData:{ ...params }
    } 
    const url = `/xe.guide_group.get.qrcode.after.paid/1.0.0`;
    return request({ url, params: requestParams, requestType: 'json'});
}

// 获取购物车跳转到支付完成也特殊调用的引导加群
export function getCartLeadGroup() {
  const url = `${alivePrefix}/get_shop_guide_config`;
  return request({ url });
}